package com.naiterui.ehp.bs.recommend.repository.mysql;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Repository;

import com.naiterui.common.repository.core.BaseJpaRepository;
import com.naiterui.ehp.bs.recommend.bean.RecomEsignPharmacist;

@Repository
public interface IRecomEsignPharmacistRepository extends BaseJpaRepository<RecomEsignPharmacist, Long> {

    RecomEsignPharmacist findFirstByPharmacistId(Long pharmacistId);

    RecomEsignPharmacist findFirstByOpenId(String openId);

    RecomEsignPharmacist findFirstByPharmacistIdAndStatus(Long pharmacistId, Integer status);

    Page<RecomEsignPharmacist> findByStatusAndType(Integer status, Integer type, Pageable pageable);

    //List<RecomEsignPharmacist> findAllByStatusAndTypeOrderByIdDescLimit(Integer status, Integer type, Integer limit);
}